/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.epam.muzalevskiy.third_project.knife;

/**
 * This class include blade width parameters.
 *
 * @author Muzalevskiy Vitaliy
 */
public class BladeWidth {
    
    /**
     * Units of current knife blade width.
     */
    private Units units;
    
    /**
     * Width of current knife blade.
     */
    private int width;

    /**
     * Constructor of <code> BladeWidth </code> class.
     *
     * @param unit - units of current knife blade width.
     * @param length - width of current knife blade.
     */
    public BladeWidth(Units units, int width) {
        this.units = units;
        this.width = width;
    }

    /**
     * @return the units
     */
    public Units getUnits() {
        return units;
    }

    /**
     * @return the width
     */
    public int getWidth() {
        return width;
    }

    @Override
    public String toString() {
        return "width=" + width + '(' + units + ')';
    }
    
    
}
